﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CoreRp.Models.Layui
{
    public class M_DataGrid<T>
    {
        public int code { get; set; }
        public string msg { get; set; }
        public int count { get; set; }
        public List<T> data { get; set; } = new List<T>();
        public JsonResult ToJsonResult()
        {
            return new JsonResult(this);
        }
    }

}
